package com.fh.shop.api.util;

import org.apache.commons.lang3.StringUtils;

public class FileUtil {

    public static String grtFileName(String path){
        if (StringUtils.isEmpty(path)){
            throw new RuntimeException("文件路径为空");
        }
        int i = path.lastIndexOf("/");
        return path.substring(i+1);
    }

}
